package home_8_25.dao.impl;

import com.neu.Dao.BaseDao;
import home_8_25.dao.AdminDao;

import java.util.List;
import java.util.Map;

public class AdminDaoImpl extends BaseDao implements AdminDao {

    @Override
    public Map<String, Object> login(String name,String pwd) {
        Map<String,Object> map = null;
        String sql = " select * from tadmin where adname =? and adpwd =md5(?)";
        List<Map<String,Object>> list =
                super.executeQuery(sql,name,pwd);
        if (list.size()>0){
            map = list.get(0);
        }
        return map;
    }



}
